<?php


/**
 * Notes:
 * PROJECT_NAME : ERP v1.8 重构erp
 * User: 夏鱼儿<397072174@qq.com>
 * Date: 2024/3/27
 * Time: 11:19
 */

namespace app\admin\controller;

use app\admin\model\GoodsRule as GoodsRuleModel;
use app\admin\validate\GoodsValidate;
use app\service\traits\Crud;
use app\admin\model\GoodsCate;

class GoodsRule extends Base
{

    private GoodsRuleModel $model;

    use Crud;

    public function initialize()
    {
        parent::initialize();
        $this->model         = new GoodsRuleModel();
        $this->validateClass = GoodsValidate::class;
        $this->withSearch    = "goods_id,status,id";
        $this->detailWith    = "goods_rule,spec";
    }

}